<!doctype html> 
<html>
<head>
<script>
function searchQuery(info, tab) {
	chrome.tabs.create({url: 'http://unixhelp.ed.ac.uk/CGI/man-cgi?'+ info.selectionText, index: tab.index + 1});
}

chrome.contextMenus.create({
    title: 'Looking for \'%s\' on unix man pages!',
    contexts: ['selection'],
    onclick: searchQuery
  });
</script>
</head>
</html>
